package com.tiancheng.onecode.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tiancheng.onecode.entity.PlatformMerchantUser;
import com.tiancheng.onecode.model.auth.UserMerchantProfile;
import com.tiancheng.onecode.model.dto.PlatformMerchantUserDetailDTO;

import java.util.List;

/**
 * @Author: kellen
 * @Description: 商户用户service
 * @Date: create in 2024/12/9 18:21
 */
public interface IPlatformMerchantUserService extends IService<PlatformMerchantUser> {
    List<UserMerchantProfile> queryByUserId(String userId);

    /**
     * 查询平台商户超级管理员
     *
     * @param platformMerchantId
     * @return
     */
    PlatformMerchantUserDetailDTO queryPlatformMerchantSuperAdmin(Long platformMerchantId);

    /**
     * 添加商户超级管理员
     * @param platformMerchantUser
     * @return
     */
    Boolean addSuperAdmin(PlatformMerchantUser platformMerchantUser);

    /**
     * 删除商户管理员
     * @param platformMerchantId
     * @return
     */
    Boolean removeMerchantSuperAdmin(Long platformMerchantId);
}
